/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.crossriver.crgis.database.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * This class is used by
 * {@link com.crossriver.crgis.database.service.http.Supporting_DocumentServiceSoap}.
 * </p>
 *
 * @author    Wole Adetiba
 * @see       com.crossriver.crgis.database.service.http.Supporting_DocumentServiceSoap
 * @generated
 */
public class Supporting_DocumentSoap implements Serializable {
	public static Supporting_DocumentSoap toSoapModel(Supporting_Document model) {
		Supporting_DocumentSoap soapModel = new Supporting_DocumentSoap();

		soapModel.setDocumentId(model.getDocumentId());
		soapModel.setApplicationId(model.getApplicationId());
		soapModel.setUserId(model.getUserId());
		soapModel.setFileName(model.getFileName());
		soapModel.setDocumentName(model.getDocumentName());
		soapModel.setRequired(model.getRequired());
		soapModel.setDocumentType(model.getDocumentType());
		soapModel.setDocumentUpload(model.getDocumentUpload());
		soapModel.setUploadedDate(model.getUploadedDate());

		return soapModel;
	}

	public static Supporting_DocumentSoap[] toSoapModels(
		Supporting_Document[] models) {
		Supporting_DocumentSoap[] soapModels = new Supporting_DocumentSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static Supporting_DocumentSoap[][] toSoapModels(
		Supporting_Document[][] models) {
		Supporting_DocumentSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new Supporting_DocumentSoap[models.length][models[0].length];
		}
		else {
			soapModels = new Supporting_DocumentSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static Supporting_DocumentSoap[] toSoapModels(
		List<Supporting_Document> models) {
		List<Supporting_DocumentSoap> soapModels = new ArrayList<Supporting_DocumentSoap>(models.size());

		for (Supporting_Document model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new Supporting_DocumentSoap[soapModels.size()]);
	}

	public Supporting_DocumentSoap() {
	}

	public String getPrimaryKey() {
		return _documentId;
	}

	public void setPrimaryKey(String pk) {
		setDocumentId(pk);
	}

	public String getDocumentId() {
		return _documentId;
	}

	public void setDocumentId(String documentId) {
		_documentId = documentId;
	}

	public String getApplicationId() {
		return _applicationId;
	}

	public void setApplicationId(String applicationId) {
		_applicationId = applicationId;
	}

	public String getUserId() {
		return _userId;
	}

	public void setUserId(String userId) {
		_userId = userId;
	}

	public String getFileName() {
		return _fileName;
	}

	public void setFileName(String fileName) {
		_fileName = fileName;
	}

	public String getDocumentName() {
		return _documentName;
	}

	public void setDocumentName(String documentName) {
		_documentName = documentName;
	}

	public String getRequired() {
		return _required;
	}

	public void setRequired(String required) {
		_required = required;
	}

	public String getDocumentType() {
		return _documentType;
	}

	public void setDocumentType(String documentType) {
		_documentType = documentType;
	}

	public String getDocumentUpload() {
		return _documentUpload;
	}

	public void setDocumentUpload(String documentUpload) {
		_documentUpload = documentUpload;
	}

	public Date getUploadedDate() {
		return _uploadedDate;
	}

	public void setUploadedDate(Date uploadedDate) {
		_uploadedDate = uploadedDate;
	}

	private String _documentId;
	private String _applicationId;
	private String _userId;
	private String _fileName;
	private String _documentName;
	private String _required;
	private String _documentType;
	private String _documentUpload;
	private Date _uploadedDate;
}